package com.dapeis.domain.ext;

import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Transient;

import com.ag.module.admin.domain.AdminUser;
import com.dapeis.domain.Collocation;
import com.dapeis.domain.MoneyLog;
import com.dapeis.domain.User;

/** 
 * @author 作者 E-mail: hzyuanyong@126.com
 * @version 创建时间：2017年5月24日 下午4:50:33 
 * 类说明 
 */
public class MoneyLogExt extends MoneyLog {

    @OneToOne
    @JoinColumn(name = "userId")
    User user;
    
    @Transient
    CollocationExt collocationExt;
    
   
    @OneToOne
    @JoinColumn(name="adminUserId")
    AdminUser adminUser;
    
    @Transient
    String content;//组装前端显示数据

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    
    public CollocationExt getCollocationExt() {
        return collocationExt;
    }

    public void setCollocationExt(CollocationExt collocationExt) {
        this.collocationExt = collocationExt;
    }

    public AdminUser getAdminUser() {
        return adminUser;
    }

    public void setAdminUser(AdminUser adminUser) {
        this.adminUser = adminUser;
    }
    
}

